package com.accp.chs2.service.impl;

import com.accp.chs2.dao.ProductRepository;
import com.accp.chs2.pojo.Product;
import com.accp.chs2.service.ProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ProductServiceImpl implements ProductService {

	@Autowired
	private ProductRepository productRepository;

	@Override
	public List<Product> findAll() {
		return productRepository.findAll();
	}
}
